import com.example.demo.DemoApplication;
import com.example.demo.entity.User;
import com.example.demo.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = DemoApplication.class)
public class UserTest {
    @Autowired
    private UserService userService;

    @Test
    public void test() {
        System.out.println(userService.getUsersByStatus(1));
    }
    @Test
    public void test2() {
        System.out.println(userService.getUserById(1L));
    }
    @Test
    public void test3() {
        System.out.println(userService.createUser(new User("test", "test@example.com", "123456")));
    }
}
